package com.jmyd.sharding.constants;

/**
 * Redis key常量
 *
 * @author samphin
 * @date 2019-10-16 16:11:34
 */
public final class RedisConstants {
    private RedisConstants() {
    }

    /**
     * 手机验证码 redis key
     */
    public static final String PHONE_CODE_KEY = "phone_code_key:%s";
    /**
     * 访问token缓存key
     */
    public static final String PREFIX_API_ACCESS_TOKEN = "store_api_access_token:%s";
    /**
     * shiro token redis key store api
     */
    public static final String PREFIX_API_REFRESH_TOKEN = "store_api_refresh_token:%s";

    /**
     * shiro session key
     */
    public static final String PREFIX_API_SHIRO_KICKOUT_SESSION = "shiro:cache:shiro-kickout-session:%s";

    /**
     * 用户信息Key
     */
    public static final String PREFIX_USER_INFO = "user_info:%s";

    /**
     * 前端用户详情
     */
    public static final String PREFIX_WEB_USER_INFO = "web_user_info";

    /**
     * 首页文章信息key
     */
    public static final String PREFIX_INDEX_SCENE_TYPE_LIST = "index:scene:type:news";
    /**
     * 微信商户订单号key
     */
    public static final String WE_CHAT_OUT_TRADE_NO = "wechat_out_trade_no:%s";

    /**
     * 支付宝商户订单号key
     */
    public static final String ALI_PAY_OUT_TRADE_NO = "alipay_out_trade_no:%s";

    /**
     * 微信授权登录access_token缓存key
     */
    public static final String WE_CHAT_ACCESS_TOKEN = "we_chat_access_token:%s";

    /**
     * 统计登录失败次数缓存key
     */
    public static final String LOGIN_ERROR_COUNT = "login_error_count:%s";

    /**
     * 提交表单次数缓存key
     */
    public static final String SUBMIT_FORM_COUNT = "submit_form_count:%s";

    /**
     * 已接收过验证码手机缓存Key
     */
    public static final String SEND_CODE_TELEPHONE = "send_code_telephone:%s";

    /**
     * 短信验证码凭证缓存Key
     */
    public static final String SMS_CODE_CERTIFICATE = "sms_code_certificate:%s";

    /**
     * 主持人忙线缓存Key
     */
    public static final String COMPERE_BUSY_LINE = "compere_busy_line";

    /**
     * 游客使用标识缓存Key
     */
    public static final String VISITOR_USED = "visitor_used";

    /**
     * 游客带看ID
     */
    public static final String LOOK_ID_KEY = "look_id:%s";

    /**
     * 游客带看ID
     */
    public static final String COUPON_CODES = "coupon_codes:%s";

    /**
     * 展厅统计值
     */
    public static final String SCENE_TEMPLATE_STATISTICS_COUNT = "scene_template_statistics_count";

    /**
     * 展厅点赞量
     */
    public static final String SCENE_TEMPLATE_LIKE_COUNT = "scene_template_like_count";

    /**
     * 展厅访问量
     */
    public static final String SCENE_TEMPLATE_VISIT_COUNT = "scene_template_visit_count";

    /**
     * matterPort prefetch接口缓存Key
     */
    public static final String SCENE_MATTER_PREFETCH_KEY = "scene_matter_prefetch_key";

    /**
     * redis默认缓存时间30分钟
     */
    public static final Integer REDIS_DEFAULT_EXPIRE_TIME = 1800;
}
